package main;

import java.io.IOException;
import java.util.List;

import javax.jdo.PersistenceManager;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import DBClasses.User;

public class Exit extends BaseServlet
{
	@SuppressWarnings("unchecked")
	@Override
	protected void action(HttpServletRequest req, HttpServletResponse resp)
			throws IOException, ServletException
	{
		HttpSession session = req.getSession();
		UserView user = (UserView)session.getAttribute("user");
		if (user != null)
		{			
			session.setAttribute("user", null);			
		}
	}
}
